from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QStatusBar

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(750, 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei")
        font.setPointSize(10)
        self.centralwidget.setFont(font)
        self.centralwidget.setObjectName("label")
        
        self.course_label = QtWidgets.QLabel(self.centralwidget)
        self.course_label.setGeometry(QtCore.QRect(380, 10, 70, 20))
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei")
        font.setPointSize(10)
        self.course_label.setFont(font)
        self.course_label.setLineWidth(1)
        self.course_label.setObjectName("course_label")

        self.course_combo = QtWidgets.QComboBox(self.centralwidget)
        self.course_combo.setGeometry(QtCore.QRect(440, 10, 240, 20))
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei")
        font.setPointSize(10)
        self.course_combo.setFont(font)
        self.course_combo.setObjectName("course_combo")

        self.course_info_label = QtWidgets.QLabel(self.centralwidget)
        self.course_info_label.setGeometry(QtCore.QRect(380, 40, 300, 160))
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei")
        font.setPointSize(10)
        self.course_info_label.setFont(font)
        self.course_info_label.setText("")
        self.course_info_label.setObjectName("course_info_label")

        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(10, 10, 420, 190))
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei")
        font.setPointSize(10)
        self.label.setFont(font)
        self.label.setText("")
        self.label.setObjectName("label")


        self.tableWidget = QtWidgets.QTableWidget(self.centralwidget)
        self.tableWidget.setGeometry(QtCore.QRect(10, 220, 730, 310))
        self.tableWidget.setObjectName("tableWidget")
        self.tableWidget.setColumnCount(0)
        self.tableWidget.setRowCount(0)
        self.button = QtWidgets.QPushButton(self.centralwidget)
        self.button.setGeometry(QtCore.QRect(670, 540, 70, 30))
        self.button.setObjectName("button")

        self.statusBar = QStatusBar()
        self.setStatusBar(self.statusBar)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "考勤系统"))
        self.course_label.setText(_translate("MainWindow", "选择课程"))
        self.button.setText(_translate("MainWindow", "提交"))


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    MainWindow = QtWidgets.QMainWindow()
    ui = Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    sys.exit(app.exec_())
